package org.mathig.poker.action;

import org.mathig.poker.Action;
import org.mathig.poker.AfterBetActions;
import org.mathig.poker.PlayerWrapper;
import org.mathig.poker.table.TableHand;

public class AfterBetActionsImpl extends AbstractActions implements AfterBetActions {

   public AfterBetActionsImpl(PlayerWrapper player, TableHand tableHand) {
      super(player, tableHand);
   }

   /**
    * A previous player bet and you bet more than him.
    */
   public Action raise(final int amount) {
      return new RaiseAction(player, tableHand, amount);
   }

   /**
    * Pay the current bet to follow.
    */
   public Action call() {
	   return new CallAction(player, tableHand);
   }

}
